package canss.webservice.controls;

import java.io.IOException;
import java.net.MalformedURLException;

import javax.xml.parsers.ParserConfigurationException;

import org.apache.beehive.controls.api.bean.ControlInterface;
import org.xml.sax.SAXException;

import canss.webservice.model.ContentsDBContent;

@ControlInterface
public interface ContentControl
{
	ContentsDBContent[] getContentsByFilter(String _filter)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;

	String getContentsByFilter(String _filter, String _3pid, Integer _chid)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;

	ContentsDBContent[] getContentsByFilterFrom(String _filter, long _lastdatefrom)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;

	String getContentsByFilterFrom(String _filter, long _lastdatefrom, String _3pid, Integer _chid)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;

	ContentsDBContent[] getAgreedContentsByFilter(String _filter)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;

	String getAgreedContentsByFilterFrom(String _filter, long _lastdatefrom, String _3pid, Integer _chid)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;

	String getAgreedContentsByFilter(String _filter, String _3pid, Integer _chid)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;

	ContentsDBContent[] getAgreedContentsByFilterFrom(String _filter, long _lastdatefrom)
			throws MalformedURLException, IOException,
			ParserConfigurationException, SAXException;


	
}